package org.tissou.client.Services;

import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.core.client.GWT;

/**
 * Created by IntelliJ IDEA.
 * User: Claire
 * Date: 24-May-2009
 * Time: 09:45:00
 * To change this template use File | Settings | File Templates.
 */
public interface NouveauProprioService extends RemoteService {
  void CreerNouveauProprietaire(String nom) throws MonException;

  public static class App {
    private static final NouveauProprioServiceAsync ourInstance;

    static {
      ourInstance = (NouveauProprioServiceAsync) GWT.create(NouveauProprioService.class);
      ((ServiceDefTarget) ourInstance).setServiceEntryPoint(GWT.getModuleBaseURL() + "NouveauProprioService");
    }

    public static NouveauProprioServiceAsync getInstance() {
      return ourInstance;
    }
  }
}
